package com.pusilkom.uploader;

/**
 * Class: ZipFileReader
 * Desc: Simple class for reading txt file from zip archive
 * Author: Purwa
 */

import java.io.IOException;
import java.util.zip.ZipEntry;
import java.util.zip.ZipFile;

public class ZipFileReader {

	public ZipFile zf;
	
	/**
	 * Default constructor
	 * @param String absFilePath
	 * @throws IOException 
	 */
	public ZipFileReader(String absFilePath) throws IOException {
		zf = new ZipFile(absFilePath);
	}
	
	public ZipEntry getZipEntry(String fileName) throws IOException {
		ZipEntry entry = zf.getEntry(fileName);
		return entry;
	}	
}
